package com.wxc.api.admin.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.wxc.api.admin.entity.SysRole;
import com.wxc.api.admin.mapper.SysRoleMapper;
import com.wxc.api.admin.service.ISysRoleService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

/**
 * <p>
 * 用户角色表 服务实现类
 * </p>
 *
 * @author baomidou
 * @since 2022-04-14
 */
@Service
public class SysRoleServiceImpl extends ServiceImpl<SysRoleMapper, SysRole> implements ISysRoleService {

    @Resource
    private SysRoleMapper sysRoleMapper;

    @Override
    public SysRole getInfo(Integer id) {
        QueryWrapper<SysRole> wrapper = new QueryWrapper<>();
        wrapper.eq("id", id);
        return sysRoleMapper.selectOne(wrapper);
    }

}
